package com.mytecblog.framework.util;

import org.hibernate.query.Query;

/**
 * 查询工具
 * @author yg.huang
 * @version v1.0
 *          DATE  2016/10/28
 */
public class QueryUtil {
    public static void setParameters(Query query, Object... params){

        for(int i=0;i<params.length;i++){
            query.setParameter(i,params[i]);
        }
    }
}
